From 0a9d707e46fa0b8d569a7b7abe9727d31d94709b Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 22 Jul 2005 15:41:42 +0000 Subject: [PATCH] if user specified -o, be sure it means something. Add hint for positioning -x in cmd line in short help. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1298 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gpsbabel/main.c b/gpsbabel/main.c index 2b1afdfe4..01e0adaac 100644 --- a/gpsbabel/main.c +++ b/gpsbabel/main.c @@ -54,7 +54,7 @@ usage(const char *pname, int shorter) " -t Process track information\n" " -w Process waypoint information [default]\n" " -N No smart icons on output\n" -" -x filtername Invoke filter\n" +" -x filtername Invoke filter (place between inputs and output) \n" " -D level Set debug level [%d]\n" " -h, -? Print detailed help and exit\n" " -V Print GPSBabel version and exit\n" @@ -153,6 +153,9 @@ main(int argc, char *argv[]) optarg = argv[argn][2] ? argv[argn]+2 : argv[++argn]; ovecs = find_vec(optarg, &ovec_opts); + if (ovecs == NULL) { + fatal ("Output type '%s' not recognized\n", optarg); + } break; case 'f': optarg = argv[argn][2] -- 2.30.2